package com.xwj.controller;

import com.xwj.service.PaymentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xwj
 * @date 2020/4/20
 */
@RestController
@Slf4j
public class OrderController {

    @Autowired
    private PaymentService paymentService;


    @GetMapping(value = "/consumer/payment/{id}")
    public String pay(@PathVariable("id") Integer id) {
        return paymentService.pay(id);
    }
}
